package com.shycloud.mido.homework.service;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shycloud.mido.homework.api.entity.WeekDataMember;
import com.shycloud.mido.member.api.entity.MemberActivateEntity;

import java.util.Map;

/**
 * <p>
 * 周报数据周维度表 服务类
 * </p>
 *
 * @author baiqiang
 * @since 2021-06-15
 */
public interface WeekDataMemberService extends IService<WeekDataMember> {

	IPage<WeekDataMember> pageMemberListByWeek(Page<WeekDataMember> page);

	/** 查询UDID激活时间 */
	MemberActivateEntity getMidoMasterByMemberAndWeek(@Param("param") String memberId);

	/** 获取用户周练琴总时长以及排名百分比（返回值先用Map接，等后期整合） */
	Map<String, Object> getWeekAllTime(String memberId, String studentId, String weekId);
}
